Χρησιμοποιώ το overload (Binding, Endpoint). Τα attributes είναι σωστά από ότι βλέπω. Χρησιμοποίησα και το Svcutil
για να δώ τι config μου βγάζει, και με αυτό το ίδιο. Δες και το config που κάνει export:
<binding name="WSHttpBinding_IWcfService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="true" />
<security mode="None">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
establishSecurityContext="true" />
Και το Endpoint:
<endpoint address="http://localhost:8880/WCF/" binding="wsHttpBinding"
bindingConfiguration="WSHttpBinding_IWcfService" contract="SvcUtilProxy.IWcfService"
name="WSHttpBinding_IWcfService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
Με το overload που λές και δίνοντας το όνομα του configuration όπως το βλέπεις και ποιο πάνω,
χτυπάει άλλο Exception. InvalidArgumentException.
Αν και δουλεύει με basic θα ήθελα να ξέρω γιατί μου την σπάει:P